package com.wrench.elevator.redis_test;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class Subscriber
{
    
    public static void main(String[] args)
    {
        JedisPool pool = new JedisPool(new JedisPoolConfig(),"localhost",6379,10000,"!WQ19-p0");  
        
        Jedis jedis = pool.getResource();
        jedis.psubscribe(new KeyExpiredListener(), "__keyevent@0__:expired");  
        
    }
}